<%@ page language="java" contentType="text/html; charset=UTF-8" %>
<%@ include file="/WEB-INF/jsp/taglibs-struts2.jsp" %>

<form name="searchform" action="user!searchUser.action" method="post">
<input type="hidden" name="type" value="<c:out value="${type}"/>"/>
<div class="right2">
  <div class="right600b"><h2><img src="<c:url value="/images/r101.jpg"/>"/></h2>
    <c:choose>
      <c:when test="$(type==0}"><h2 class="r101">管理员查询</h2></c:when>
      <c:when test="$(type==1}"><h2 class="r101">普通预订用户查询</h2></c:when>
      <c:when test="$(type==2}"><h2 class="r101">订单处理员查询</h2></c:when>
    </c:choose>
  <h2><img src="<c:url value="/images/r103.jpg"/>"/></h2></div>

<div class="rightk">
  <h3>用户关键字：</h3>
  <h2><input type="text" size="30" name="query" value="<c:out value="${param['query']}"/>"/>
</h2></div>

<div class="rightk2"><h3/><h2><img height="22" border="0" width="90" src="<c:url value="/images/t03.jpg"/>" onclick="submitSearch();"/></h2>
<h2><img height="20" width="60" src="<c:url value="/images/t04.jpg"/>"/></h2>
</div>
</form>

<script type="text/javascript">
function submitSearch(){
window.document.searchform.submit();
}
</script>

<div class="right600k"><h2><img src="<c:url value="/images/r101.jpg"/>"/></h2><h2 class="r102">用户列表页面</h2>
<h2><img src="<c:url value="/images/r103.jpg"/>"/></h2></div>
<div class="r207">
  <h2 class="r50">用户ID</h2>
  <h2 class="r100">注册名</h2>
  <h2 class="r50">真实姓名</h2>
  <h2 class="r100">手机号</h2>
  <c:if test="${type==2}"><h2 class="r50">关联大洲</h2></c:if>

</div>
<!--这里循环-->
<c:forEach var="user" items="${userList}">
<div class="r208">
  <h2 class="r50"><c:out value="${user.id}"/></h2>
  <h2 class="r100"><a target=_blank href="<c:url value="flightOrderAction!orderDetail.action"><c:param name="orderId" value="${order.id}"/></c:url>"><c:out value="${user.accountName}"/></a></h2>
  <h2 class="r50"><c:out value="${user.realName}"/></h2>
  <h2 class="r100"><c:out value="${user.mobilePhone}"/></h2>
  <h2 class="r50"><a href="<c:url value="/user/user!showStaffArea.action"><c:param name="userId" value="${user.id}"/></c:url>">关联</a></h2>
</div>
</c:forEach>

</div>